package stackdemo;

import java.util.Stack;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: SEKI TOMOKI
 * Date: 2023-10-10
 * Time: 14:42
 */
public class Test {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        //myStack.pop();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        myStack.push(4);
        System.out.println(myStack);

        int tmp = myStack.pop();
        System.out.println(tmp);

        System.out.println("====================");
        myStack.push(45);
        System.out.println(myStack);


    }
}
